🌲 #newfeature `str.format_time(time, format, timezone)` allows you to convert a Unix timestamp into a formatted string, while also allowing its translation to a timezone:
//@version=5 indicator("str.format_time") if timeframe.change("1D") // Time in exchange tz. formattedTime1 = str.format_time(time, "yyyy-MM-dd HH:mm", syminfo.timezone) // Time in UTC tz using `str.format()`. formattedTime2 = str.format("{0,time,yyyy-MM-dd HH:mm}", time) // Time in UTC tz using `str.format_time()`. formattedTime3 = str.format_time(time, "yyyy-MM-dd HH:mm", "UTC") label.new(bar_index, high, formattedTime1 + "\n" + formattedTime2 + "\n" + formattedTime3)
🌲 #newfeature `str.format_time(time, format, timezone)` allows you to convert a Unix timestamp into a formatted string, while also allowing its translation to a timezone:
//@version=5 indicator("str.format_time") if timeframe.change("1D") // Time in exchange tz. formattedTime1 = str.format_time(time, "yyyy-MM-dd HH:mm", syminfo.timezone) // Time in UTC tz using `str.format()`. formattedTime2 = str.format("{0,time,yyyy-MM-dd HH:mm}", time) // Time in UTC tz using `str.format_time()`. formattedTime3 = str.format_time(time, "yyyy-MM-dd HH:mm", "UTC") label.new(bar_index, high, formattedTime1 + "\n" + formattedTime2 + "\n" + formattedTime3)
BY PineCoders Squawk Box
Warning: Undefined variable $i in /var/www/tg-me/post.php on line 283
Some messages aren’t supposed to last forever. There are some Telegram groups and conversations where it’s best if messages are automatically deleted in a day or a week. Here’s how to auto-delete messages in any Telegram chat. You can enable the auto-delete feature on a per-chat basis. It works for both one-on-one conversations and group chats. Previously, you needed to use the Secret Chat feature to automatically delete messages after a set time. At the time of writing, you can choose to automatically delete messages after a day or a week. Telegram starts the timer once they are sent, not after they are read. This won’t affect the messages that were sent before enabling the feature.